FROM registry.cn-hangzhou.aliyuncs.com/gcsimple/centos_jdk8:1.0.0

WORKDIR /home

COPY target/*.jar /home
ENV JAVA_OPTS="-server -Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m -Djava.awt.headless=true "
ENV BOOT_OPTS="--abacus.datasource.zone1.url=jdbc:mysql://172.21.238.1:33306/merge_log?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&useSSL=false&useAffectedRows=true"

ENTRYPOINT ["sh", "-c", "exec java $JAVA_OPTS -jar *.jar $BOOT_OPTS"]

#port
EXPOSE 8081 8081
